package com.gibs.peixunapi.service;

import java.util.List;

import com.gibs.peixunapi.VO.RoleVO;
import com.gibs.peixunapi.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.ObjectError;

import javax.persistence.Id;
import javax.validation.Valid;

import com.gibs.peixunapi.model.Role;

public interface RoleService {

    Result create(@Valid Role object);

    Result save(@Valid Role object);

    Result delete(Integer id);

    Result get(Integer id);

    Result getList(String key);

    Result getListPage(String key, Integer current, Integer limit);

    Result getOptions(String key);

    List<Integer> getIdListByCode(String code);
}

